<template>
  <div class="home-container">
    <!-- 头部区域 -->
    <Header></Header>
    <!-- 主体区域 -->
    <div class="home-main-box">
      <!-- 左侧边栏区域 -->
      <Aside></Aside>
      <!-- 右侧内容主体区域 -->
      <div class="home-main-body">
        <!-- 路由的占位符 -->
        <RouterView></RouterView>
      </div>
    </div>
  </div>
</template>

<script setup>
// 头部区域组件
import Header from './subcomponents/Header.vue'
// 左侧边栏组件
import Aside from './subcomponents/Aside.vue'
</script>

<style lang="less">
.home-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  .home-main-box {
    height: 100%;
    display: flex;
    .home-main-body {
      padding: 15px;
      flex: 1;
    }
  }
}
</style>